using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeocodingTools
{
    /// <summary>
    /// <para>Consolidate Locator</para>
    /// <para>Consolidate Locator</para>
    /// <para>合并定位器</para>
    /// </summary>    
    [DisplayName("Consolidate Locator")]
    public class ConsolidateLocator : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ConsolidateLocator()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_locator">
        /// <para>Input Locator</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_output_folder">
        /// <para>Output Folder</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ConsolidateLocator(object _in_locator, object _output_folder)
        {
            this._in_locator = _in_locator;
            this._output_folder = _output_folder;
        }
        public override string ToolboxName => "Geocoding Tools";

        public override string ToolName => "Consolidate Locator";

        public override string CallName => "geocoding.ConsolidateLocator";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_locator, _output_folder, _copy_arcsde_locator.GetGPValue()];

        /// <summary>
        /// <para>Input Locator</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Locator")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_locator { get; set; }


        /// <summary>
        /// <para>Output Folder</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Folder")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_folder { get; set; }


        /// <summary>
        /// <para>Composite locator only: copy participating locators in ArcSDE database instead of referencing them</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Composite locator only: copy participating locators in ArcSDE database instead of referencing them")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _copy_arcsde_locator_value _copy_arcsde_locator { get; set; } = _copy_arcsde_locator_value._true;

        public enum _copy_arcsde_locator_value
        {
            /// <summary>
            /// <para>COPY_ARCSDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("COPY_ARCSDE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>PRESERVE_ARCSDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRESERVE_ARCSDE")]
            [GPEnumValue("false")]
            _false,

        }

        public ConsolidateLocator SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}